From d7d91777943c53ea62541c2e2fc0c1cea02db5f9 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 18 Sep 2018 23:32:31 +0100 Subject: [PATCH] Run build-time tests under Xvfb --- debian/changelog | 1 + debian/rules | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4d7c6356a0..9321875e0a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -60,6 +60,7 @@ gtk+4.0 (3.94.0-1) UNRELEASED; urgency=medium * Fix generation of README.md.gz symlinks * Generate a dependency on libgtk-4-0.9400.0 since the ABI is not yet stable + * Run build-time tests under Xvfb -- Jeremy Bicha Fri, 19 Jan 2018 22:05:35 -0500 diff --git a/debian/rules b/debian/rules index 9469c9db14..69da22110e 100755 --- a/debian/rules +++ b/debian/rules @@ -180,7 +180,9 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) cp gtk/org.gtk.* debian/build/glib-2.0/schemas/ glib-compile-schemas debian/build/glib-2.0/schemas/ # Remove LD_PRELOAD so we don't run with fakeroot, which makes dbus-related tests fail - env -u LD_PRELOAD dh_auto_test --builddirectory=debian/build/deb -- -k 0 -j 1 || true + env -u LD_PRELOAD \ + xvfb-run -a \ + dh_auto_test --builddirectory=debian/build/deb -- -k 0 -j 1 || true endif override_dh_auto_install: -- 2.30.2